#!/bin/bash

sudo git pull origin dev

mvn clean package -DskipTests

adminImageName="admin-`date +%Y%m%d%H%M%S`"

sudo docker build -t $adminImageName ./xiaozhu-admin/

sudo docker run --name admin -d -p 8001:8080 -v /data:/data $adminImageName
